from django.urls import path
from . import views
from rest_framework.routers import DefaultRouter

app_name = 'member'

router = DefaultRouter(trailing_slash=False)
router.register("member", views.memberViewSet, basename='member')

urlpatterns = [
    path('departments', views.DepartmentListView.as_view(), name='departments'),

    path('download', views.memberDownloadView.as_view(), name='download_member'),
] + router.urls